const router = require('koa-router')();
const relevantData = require("../data/relevant")
const relevantAData = require("../data/relevant_a")

const {SwiperPic ,keypoints}= require("../data/Swiper")

router.get("/swiperpic", async (ctx) => {
    const resData = {
        data: SwiperPic,
        code: 0,
        message: "0"
    }
    ctx.body = resData
})

router.get("/keypoints", async (ctx) => {
    const resData = {
        data: keypoints,
        code: 0,
        message: "0"
    }
    ctx.body = resData
})
router.get("/relevant", async (ctx) => {
    const resData = {
        data: relevantData,
        code: 0,
        message: "0"
    }
    ctx.body = resData
})
router.get("/relevant_a", async (ctx) => {
    const resData = {
        data: relevantAData,
        code: 0,
        message: "0"
    }
    ctx.body = resData
})
module.exports = router.routes();